﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YourFileWatcher.Models
{

    /// <summary>
    /// 支持自动属性通知的对象
    /// </summary>
    public class PropertyChangedBase : INotifyPropertyChanged
    {

        #region 接口 INotifyPropertyChanged


        public event PropertyChangedEventHandler PropertyChanged;
        public void RaisePropertyChanged(string propertyName)
        {
            if (null != PropertyChanged)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }


        #endregion

    }
}
